package com.develop.skwen.electricgomall.category.itemList;

import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.develop.skwen.basemodule.list.BaseAdapter;
import com.develop.skwen.basemodule.list.BaseHolder;
import com.develop.skwen.electricgomall.R;
import com.develop.skwen.electricgomall.category.itemList.holder.CategoryItemHolder;
import com.develop.skwen.electricgomall.category.model.CategoryItemBean;

import java.util.List;

/**
 * Created by skwen on 2018/6/24.
 */

public class CategoryItemListAdapter extends BaseAdapter<CategoryItemBean> {

    public CategoryItemListAdapter(List list) {
        super(list);
    }

    @Override
    protected BaseHolder getViewHolder(LayoutInflater inflater, ViewGroup parent, int viewType) {
        return new CategoryItemHolder(inflater.inflate(R.layout.category_item_detial_layout,parent,false));
    }
}
